﻿using TickSharp.Core.Enum;

namespace TickSharp.Core.Model
{
    public class EntryFilter
    {
        public EntryFilter(EntryFilterType filterType, string filterValue)
        {
            Type = filterType;
            Value = filterValue;
        }

        // TODO: this is not strongly-typed.
        public static EntryFilter Create<T>(EntryFilterType filterType, T filterValue)
        {
            return new EntryFilter(filterType, filterValue.ToString());
        }

        public EntryFilterType Type { get; private set; }
        public string Value { get; private set; }        
    }
}